import { http } from '@/utils/http'

export const createJsapiSignatureAPI = (url: string) => {
  return http<any>({
    method: 'GET',
    url: '/mobile/wecom/common/createJsapiSignature',
    data: {
      url,
    },
  })
}

export const getFollowWayListAPI = () => {
  return http<any>({
    method: 'GET',
    url: '/mobile/customer/common/followWay/all',
  })
}

export const getSaleStageListAPI = () => {
  return http<any>({
    method: 'GET',
    url: '/mobile/customer/common/saleStage/all',
  })
}

export const getContactWayListAPI = () => {
  return http<any>({
    method: 'GET',
    url: '/mobile/customer/common/contactWay/all',
  })
}

export const getProductSelectListAPI = (data: any) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/product/common/product/select/list',
    data,
  })
}

export const getProductSelectAPI = (productId: number | string) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/product/common/product/selectDetails/' + productId,
  })
}
